<include file="Common:layout" />
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default;">
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>订单编辑</h3>
                <h5>修改订单金额</h5>
            </div>
        </div>
    </div>

    <form action="{:U('Order/modify_price')}" method="post" class="form-horizontal" id="modify_price_form">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label>订单总金额</label>
                </dt>
                <dd class="opt">
                    <input type="text" class="w100" value="{$order['price'] - $order['freight_price']}" disabled>
                    <input type="text" class="w200" name="dis_price" placeholder="填写折扣金额" data-type="number">
                    <p class="notic">以金额减去折扣金额为需付款金额</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>订单运费</label>
                </dt>
                <dd class="opt">
                    <input type="text" class="w100" value="{$order['freight_price']}" disabled>
                    <input type="text" class="w200" name="dis_freight" placeholder="填写折扣金额" data-type="number">
                    <p class="notic">以金额减去折扣金额为需付款运费</p>
                </dd>
            </dl>
            <input type="hidden" name="order_id" value="{$order['id']}"/>
            <div class="bot"><a id="submitBtn" class="ncap-btn-big ncap-btn-green" href="JavaScript:void(0);">确认提交</a></div>
        </div>
    </form>
</div>
<script>
    $("#submitBtn").click(function(){
        $("#modify_price_form").submit();
    });
</script>
</body>
</html>